const multer = require('koa-router-multer');

const uploadCtrl = require('./upload.controller');

const upload = multer({dest: 'uploads/'});

exports.init = (router) => {
  router.post('/upload', upload.single('file'), uploadCtrl.uploadFile);
  router.post('/check', uploadCtrl.checkStatus);
};
